package com.sc.vo;

import com.sc.entity.Category;

import java.util.List;

/**
 * (Category)实体类
 *
 * @author makejava
 * @since 2024-06-06 08:40:01
 */
public class CategoryVo {
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 名字
     */
    private String name;
    /**
     * 父分类
     */
    private Category parentCategory;
    /**
     * 子分类
     */
    private List<Category> childCategories;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Category getParentCategory() {
        return parentCategory;
    }

    public void setParentCategory(Category parentCategory) {
        this.parentCategory = parentCategory;
    }

    public List<Category> getChildCategories() {
        return childCategories;
    }

    public void setChildCategories(List<Category> childCategories) {
        this.childCategories = childCategories;
    }

    @Override
    public String toString() {
        return "CategoryVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parentCategory=" + parentCategory +
                ", childCategories=" + childCategories +
                '}';
    }
}


